import React, { useState, useEffect } from "react";
import axios from 'axios'
import Author from "./components/Author"
import TabList from "./components/TabList"
import './components/index.scss'
const rightAids = (props) => {
  const [ mylist , setMylist ] = useState( props.data);
  // useEffect(() => {
  //   console.log("6666666")
  // }, []);
  return (
    <div>
      <Author />
      <TabList />
    </div>
  )
}
rightAids.getInitialProps = async (context) => {
  const promise = new Promise((resolve)=>{

    axios('http://127.0.0.1:7001/default/getMiQuanList').then(
      (res)=>{
        // console.log(res.data,"666666666666")
        resolve(res)
      }
    )
  })
  return await promise
}
export default rightAids
